package com.hello.practise;

public class ShapeCircle extends Shape {
	
	double r;
	
	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}

	public ShapeCircle(){
		
	}

	public ShapeCircle(double r) {
		this.setR(r);
	}
	@Override
	public double area() {
		return Math.PI*r*r;
	}

}
